package com.framework.utils.pay.youfupay.entity;

import com.framework.utils.pay.youfupay.util.Constant;
import lombok.Data;

import java.io.Serializable;


/**
 * 公共接口请求信息实体类
 * @author Admin
 *
 */
@Data
public class RequestMessage implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	//请求标识(每一次请求唯一,在返回报文是原样返回)
	private String reqId;

	//商户号
	private String merId;
	
	//接口编码
	private String funCode;
	
	//版本信息
	private String version ="V1.0";
	
	//请求数据
	private String reqData;
	
	//响应数据
	private String resData ;
	
	//响应码
	private String resCode = Constant.SUCCESS;
	
	//响应信息
	private String resMsg = Constant.SUCCESS_INFO;
	private String remark1;
	private String remark2;

	//签名
	private String sign;
	
	//IP
	private String ip;


	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", reqId=").append(reqId);
        sb.append(", funCode=").append(funCode);
        sb.append(", merId=").append(merId);
        sb.append(", version=").append(version);
        sb.append(", reqData=").append(reqData);
        sb.append(", resData=").append(resData);
        sb.append(", ip=").append(ip);
        sb.append(", resCode=").append(resCode);
        sb.append(", resMsg=").append(resMsg);
        sb.append("]");
        return sb.toString();
    }

}
